import { axios } from '@/utils/request'

export function queryTeacher (parameter) {
  return axios({
    url: '/teacher/query',
    method: 'post',
    data: parameter
  })
}

export function addTeacher (parameter) {
  return axios({
    url: '/teacher/add',
    method: 'post',
    data: parameter
  })
}

export function validateTeacherCode (parameter) {
  return axios({
    url: '/teacher/validateTeacherCode',
    method: 'post',
    data: parameter
  })
}

export function editTeacher (parameter) {
  return axios({
    url: '/teacher/update',
    method: 'post',
    data: parameter
  })
}

export function removeTeacher (parameter) {
  return axios({
    url: '/teacher/remove',
    method: 'post',
    data: parameter
  })
}

export function resetPwd (parameter) {
  return axios({
    url: '/teacher/resetPwd',
    method: 'post',
    data: parameter
  })
}

export function listTeacher (parameter) {
  return axios({
    url: '/teacher/listTeacher',
    method: 'post',
    data: parameter
  })
}

export function getInfo () {
  return axios({
    url: '/teacher/getInfo',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
